home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / NeXT-Icons / next-icon@gun.com / Apps / ImagePortfolio / PaletteMatrix.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-03  |  2.0 KB  |  79 lines

  1. // -------------------------------------------------------------------------------------
  2. // PaletteMatrix.h
  3. // -------------------------------------------------------------------------------------
  4.  
  5. extern "Objective-C" {
  6. #import <libc.h>
  7. #import <mach/cthreads.h>
  8. #import <sys/time.h>
  9. #import <objc/zone.h>
  10. #import <objc/error.h>
  11. #import <appkit/nextstd.h>
  12. #import <appkit/graphics.h>
  13. #import <appkit/Font.h>
  14. #import <appkit/color.h>
  15. #import <appkit/Matrix.h>
  16. #import <appkit/Panel.h>
  17. }
  18.  
  19. #import "ImagePortfolio.h"
  20.  
  21. // -------------------------------------------------------------------------------------
  22. #define    myPastboardTYPE            "imageCellPath"
  23.  
  24. // -------------------------------------------------------------------------------------
  25.  
  26. @interface PaletteMatrix : Matrix
  27. {
  28.  
  29.     BOOL            pbCopyTiff;                    // copy tiff image to pasteboard
  30.     BOOL            pbCopyPath;                    // copy path to pasteboard
  31.   
  32.     id                imageList;                    // main image cell container
  33.     id                deleteList;                    // delete list save for undelete
  34.     int                maxCols;
  35.     id                delegate;                    // cell delegate
  36.     mutex_t            loadMutex;                    // cell image load mutex
  37.     BOOL            loadingCells;                // cell loading flag
  38.   
  39. }
  40.  
  41. // -------------------------------------------------------------------------------------
  42.  
  43. - initFrame:(const NXRect*)frameRect;
  44. - free;
  45. - freeCells;
  46. - freeSelectedCells;
  47.  
  48. - delete:sender;
  49. - undelete:sender;
  50. - (BOOL)undeletable;
  51. - saveToFile:(char*)fileName;
  52.  
  53. - (BOOL)setPreferences:(char*)prefBuff returnRows:(int*)rows cols:(int*)cols;
  54. - setDelegate:anObject;
  55. - setCellSize:(const NXSize*)cellSize;
  56. - (NXSize*)cellSize;
  57. - (NXSize*)intercell;
  58. - resizeAndDisplay;
  59.  
  60. - setFont:fontObj;
  61. - addImage:(const char*)filePath;
  62. - addImageCell:iCell;
  63. - (int)imageListCount;
  64. - imageAt:(int)index;
  65.  
  66. - (BOOL)anySelectableCells;
  67. - findCellWithImageFilePath:(char*)fullPath;
  68. - selectedCell;
  69. - selectedCellList;
  70. - (char*)selectedCellPaths;
  71. - (int)selectedCellCount;
  72.  
  73. - sortByCellTitle:sender;
  74. - shellSort:(SEL)sortCompare;
  75.  
  76. - (char*)getPreferenceString:(char*)buff;
  77.  
  78. @end
  79.